<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="/css/animate.css" rel="stylesheet">
<link href="/css/layui.css" rel="stylesheet">
<link href="/css/style.css?v=4.1.0" rel="stylesheet">
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-3 control-label">店铺id：</label>-->
                            <!--<div class="col-sm-8">-->
                                <!--<input id="shopId" name="shopId" class="form-control" type="text">-->
                            <!--</div>-->
                        <!--</div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">房间名称：</label>
                            <div class="col-sm-6">
                                <input id="name" name="roomName" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">房间图片：</label>
                            <div class="col-sm-8">
                                <button type="button" class="layui-btn layui-btn-normal" id="testList">选择图片</button>
                                <button type="button" class="layui-btn layui-btn-normal" id="shangchuan">上传图片</button>
                                <div class="layui-upload-list">
                                    <table class="layui-table">
                                        <thead>
                                        <tr>
                                            <th>图片名字</th>
                                            <th>大小</th>
                                            <th>状态</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody id="demoList"></tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <input type="text" id="imgUrls" name="roomPhotos" style="display: none;" class="layui-input">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">房间价格：</label>
                            <div class="col-sm-6">
                                <input id="price" name="rackPrice" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否包含早餐：</label>
                            <div class="col-sm-2">
                                <select class="form-control m-b " name="breakfast">
                                    <option selected="selected" value=2>否</option>
                                    <option value=1>是</option>
                                </select>
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">是否包含早餐：</label>
                            <div class="col-sm-8">
                                <input id="breakfast" name="breakfast" class="form-control" type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否有空调：</label>
                            <div class="col-sm-2">
                                <select class="form-control m-b " name="airConditioner">
                                    <option selected="selected" value=2>否</option>
                                    <option value=1>是</option>
                                </select>
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">是否有空调：</label>
                            <div class="col-sm-8">
                                <input id="airConditioner" name="airConditioner" class="form-control" type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">床规格类型：</label>
                            <div class="col-sm-6">
                                <input id="bedType" name="bedType" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否支持wifi：</label>
                            <div class="col-sm-2">
                                <select class="form-control m-b " name="wifi">
                                    <option selected="selected" value=2>否</option>
                                    <option value=1>是</option>
                                </select>
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">是否支持wifi：</label>
                            <div class="col-sm-8">
                                <input id="wifi" name="wifi" class="form-control" type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">行李寄存：</label>
                            <div class="col-sm-2">
                                <select class="form-control m-b " name="baggageDeposit">
                                    <option selected="selected" value=2>否</option>
                                    <option value=1>是</option>
                                </select>
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">行李寄存：</label>
                            <div class="col-sm-8">
                                <input id="baggageDeposit" name="baggageDeposit" class="form-control" type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">房间规格：</label>
                            <div class="col-sm-6">
                                <input id="roomType" name="roomType" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">入住人数：</label>
                            <div class="col-sm-6">
                                <input id="checkinNumber" name="checkinNumber" class="form-control" type="text">
                            </div>
                        </div>
                       <!-- <div class="form-group">
                            <label class="col-sm-3 control-label">房间描述：</label>
                            <div class="col-sm-8">
                                <input id="roomDescribe" name="roomDescribe" class="form-control" type="text">
                            </div>
                        </div>-->
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">房间介绍：</label>
                            <div class="col-sm-8">
                                <textarea class="form-control" name="roomDescribe" id="roomDescribe" rows="3" maxlength="30"
                                          onchange="this.value=this.value.substring(0, 30)"
                                          onkeydown="this.value=this.value.substring(0, 30)"
                                          onkeyup="this.value=this.value.substring(0, 30)"
                                          placeholder="房间介绍" aria-describedby="sizing-addon1"></textarea>
                            </div>
                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">房间介绍：</label>
                            <div class="col-sm-8">
                                <!-- <input id="scenicintro" name="scenicintro" class="form-control" type="text">-->
                                <textarea id="demo" style="display: none;"></textarea>
                            </div>
                        </div>
                        <input type="text" id="roomDescribe" name="roomDescribe" style="display: none;" class="layui-input">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">房间上下架：</label>
                            <div class="col-sm-2">
                                <select class="form-control m-b " name="updownStatus">
                                    <option selected="selected" value=2>下架</option>
                                    <option value=1>上架</option>
                                </select>
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">房间上下架：</label>
                            <div class="col-sm-8">
                                <input id="updownStatus" name="updownStatus" class="form-control" type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-6">
                                <button type="submit" class="btn btn-primary" onclick="addFarmRoom()">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>

<script src="/js/content.js?v=1.0.0"></script>
<script src="/js/layui.js"></script>
<script src="/js/plugins/clipboard/clipboard.min.js"></script>
<script src="/js/plugins/layer/layer.min.js"></script>
<script type="text/javascript" src="/js/appjs/farm/farmRoom/add.js"></script>
</body>
</html>
